package com.zkkj.demo.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;

/**
 * author : cyc
 * Date : 2019/12/26
 */

@Data
@ApiModel(value = "登录模型")
public class LoginUser implements Serializable {

    @ApiModelProperty(name = "username", value = "用户名")
    @NotBlank(message = "用户名不能为空")
    private String username;

    @ApiModelProperty(name = "password", value = "密码")
    @NotBlank(message = "密码不能为空")
    private String password;
}
